package sale.wxb.loveshopping.entity.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import sale.wxb.loveshopping.entity.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 王小宝
 * @since 2023-03-30
 */
@Getter
@Setter
  @TableName("relation_resource")
@ApiModel(value = "RelationResource", description = "")
public class RelationResource extends BaseEntity {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("文件名")
      private String filename;

      @ApiModelProperty("访问路径 - 如使用云储存 则该字段为云储存直连访问地址")
      private String path;

      @ApiModelProperty("原始文件名")
      private String originalFilename;

      @ApiModelProperty("磁盘路径")
      private String diskPath;

      @ApiModelProperty("文件后缀")
      private String suffix;

      @ApiModelProperty("关联业务ID - 该ID如不存在一段时间后该文件会被自动清理")
      private Long relationId;

      @ApiModelProperty("是否被系统自动清理 0 否 1 等待被清理 2 已清理")
      private Integer systemClear;

      @ApiModelProperty("存放位置 0 本地 1 七牛云")
      private Integer saveLocation;

      @ApiModelProperty("文件大小 单位 字节")
      private Long filesize;


}
